Type Parameter練習コード
code: embed_typelist.go
package main
import (
"fmt"
)
type C1 interface {
type int, uint
}
type C2 interface {
type int, float64
}
type C3 interface {
C1
C2
}
fmt.Printf("%T\n", s)
}
type MyInt int
type MyUInt uint
func main() {
var x MyUInt = 1
Print(x)
}